package stu.sup.entity;

import java.io.Serializable;
import java.util.Date;

public class Coupon implements Serializable {
    private Integer couponId;

    private Integer couponNo;

    private Date issueTime;

    private Integer effectDay;

    private Double reachMoney;

    private Double couponMoney;

    private String limitKinds;

    public Coupon() {
    }

    public Coupon(Integer couponId, Integer couponNo, Date issueTime, Integer effectDay, Double reachMoney, Double couponMoney, String limitKinds) {
        this.couponId = couponId;
        this.couponNo = couponNo;
        this.issueTime = issueTime;
        this.effectDay = effectDay;
        this.reachMoney = reachMoney;
        this.couponMoney = couponMoney;
        this.limitKinds = limitKinds;
    }

    private static final long serialVersionUID = 1L;

    public Integer getCouponId() {
        return couponId;
    }

    public void setCouponId(Integer couponId) {
        this.couponId = couponId;
    }

    public Integer getCouponNo() {
        return couponNo;
    }

    public void setCouponNo(Integer couponNo) {
        this.couponNo = couponNo;
    }

    public Date getIssueTime() {
        return issueTime;
    }

    public void setIssueTime(Date issueTime) {
        this.issueTime = issueTime;
    }

    public Integer getEffectDay() {
        return effectDay;
    }

    public void setEffectDay(Integer effectDay) {
        this.effectDay = effectDay;
    }

    public Double getReachMoney() {
        return reachMoney;
    }

    public void setReachMoney(Double reachMoney) {
        this.reachMoney = reachMoney;
    }

    public Double getCouponMoney() {
        return couponMoney;
    }

    public void setCouponMoney(Double couponMoney) {
        this.couponMoney = couponMoney;
    }

    public String getLimitKinds() {
        return limitKinds;
    }

    public void setLimitKinds(String limitKinds) {
        this.limitKinds = limitKinds;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", couponId=").append(couponId);
        sb.append(", couponNo=").append(couponNo);
        sb.append(", issueTime=").append(issueTime);
        sb.append(", effectDay=").append(effectDay);
        sb.append(", reachMoney=").append(reachMoney);
        sb.append(", couponMoney=").append(couponMoney);
        sb.append(", limitKinds=").append(limitKinds);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}